if (module.hot){
    module.hot.accept();
}

require("./sass/index.scss");
require("bootstrap-loader"); 					// load bootstrap
require("font-awesome/css/font-awesome.css");   // load font-awesome

const NProgress = require("nprogress");
require("nprogress/nprogress.css");

import stateman from "../components/router/router.js";
import waitMe from "../components/waitMe/index.js";
import confirmModal from "../components/confirmModal/modal.js";
import {login} from "../modules/dao.js";

login();

NProgress.configure({
    showSpinner: false,
    trickleRate: 0.05,
    trickleSpeed: 200
});

// 配置 waitme 加载框
waitMe.configure("#waitMe", {
    effect: "rotation",
    color: "#9ab1d3",
    bg: "rgba(255, 255, 255, 0.2)"
});

confirmModal.init();

stateman.start();
